﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using FutureApp.Shop.Dto;
using Abp.Domain.Repositories;
using Abp.UI;
using Abp.AutoMapper;
using Abp.Domain.Uow;
using FutureApp.Shop;
using FutureApp.Cms.Dto;

namespace FutureApp.xl
{
    /// <AppService/>
    public class OrderTestAppService : FutureAppAppServiceBase, IOrderTestAppService
    {
        private IRepository<MTest, Guid> mTestRepository { get; }

        private IRepository<DTest, Guid> dTestRepository { get; }

        /// <constructor/>
        public OrderTestAppService(
            IRepository<MTest, Guid> r1,
            IRepository<DTest, Guid> r2
        )
        {
            this.mTestRepository = r1;
            this.dTestRepository = r2;
        }




        public async Task<OrderDto> Get(Guid id)
        {

            var entity = await this.mTestRepository.GetAsync(id);
            return entity.MapTo<OrderDto>();

           // throw new NotImplementedException();
        }
    }
}
